package com.yellow.analyticsservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("traffic_reports")
public class TrafficReport {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("order_id")
    private Integer orderId;

    @TableField("report_date")
    private LocalDateTime reportDate;

    @TableField("location")
    private String location;

    @TableField("condition")
    private String condition;

    @TableField("severity")
    private Integer severity;

    @TableField("description")
    private String description;
}
